package com.bootdo.app.service.impl;

import com.bootdo.app.dao.AppOrderProductDao;
import com.bootdo.app.htmlVO.customer.UserOrderListVO;
import com.bootdo.app.service.AppOrderProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 【@author 】 @fan
 * 【@Email  】 mooncluyed@outlook.com
 * 【类解释  】
 * 【@Date   】 2018/6/9 0009
 **/
@Service
public class AppOrderProductServiceImpl implements AppOrderProductService {

    @Autowired
    private AppOrderProductDao appOrderProductDao;

    @Override
    public List<UserOrderListVO> userOrderlist(Map<String, Object> map) {
        return appOrderProductDao.list(map);
    }

    @Override
    public int userOrdercount(Map<String, Object> map) {
        return appOrderProductDao.count(map);
    }
}
